@layout("/common/_container.html",{js:["/assets/nanSellerDevice/nanSellerDevice.js"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">运营组-设备管理</span>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="sellerId" class="layui-input" type="text" placeholder="运营组ID"/>
                            </div>
                            <div class="layui-inline">
                                <input id="code" class="layui-input" type="text" placeholder="编码"/>
                            </div>
                            <div class="layui-inline">
                                <select id="isForbid">
                                    <option value="">是否禁用</option>
                                    <option value="0">否</option>
                                    <option value="1">是</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                @if(shiro.hasPermission("/nanSellerDevice/addItem")){
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                @}
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="nanSellerDeviceTable" lay-filter="nanSellerDeviceTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/nanSellerDevice/delete")){
    <a class='layui-btn {{d.isForbid? "layui-btn-checked": "layui-btn-danger"}}  layui-btn-xs' lay-event="delete">{{d.isForbid? "启用": "禁用"}}</a>
    @}
    @if(shiro.hasPermission("/nanSellerDevice/editItem")){
    <a class='layui-btn layui-btn-primary layui-btn-xs' lay-event="edit">编辑</a>
    @}
</script>
@}
